import "./seleTag.scss"
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
export default class SeleTag extends Component<any, any>{
    constructor(props: any) {
        super(props);
        // this.state = {
        //     tagData: this.props.tagData
        // }
    }
    componentDidMount() {
        // console.log('参数值')
        // console.log(this.state.tagData)
    }
    render() {
        return (
            <div className="tagPar">
                <div className="tag w960">
                    <div className="list">
                        <ul>
                            {
                                this.props.tagData && this.props.tagData.map((name: any, index: any) => (
                                    <li className="active" key={index}>
                                        <Link to={`${this.props.path}/${index + 1}`}>{name}</Link>
                                    </li>
                                ))
                            }
                        </ul>
                    </div>
                </div>
            </div>
        )
    }
}